package ch5;

public class Zuoye11 {//从1开始，输出能被9整除的数，每20个一行，最多到10000结束
    public static void main(String[] args) {
        int i = 1;
        int a = 0;
        while (i <= 10000) {
            if (i % 9 == 0) {
                System.out.print(i + " ");
                a++;
                if (a % 20 == 0) {
                    System.out.println();
                }
            }
            i++;
        }
    }
}
